Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

306
Vistas
display video frames in web page asp.net razor byte [] array

community

I´m trying to display the byte [] array that is taken from the RtspClientSharp.dll into an img tag (HTML), but this only works when the page in loading (ASP.NET). What I´m trying to do is to display every frame as faster as the user can watch the video from an ip camera. The way I use to set the image url is String.Format("data:image/png;base64,{0}", Convert.ToBase64String(viewer.imageBytes))

Here is the code:

@{
    ViewData["Title"] = "Home Page";
}

@{
    CameraViewer viewer = new CameraViewer("192.168.0.65"); 
    viewer.Start();      
 }   

<div class="veiwer">  
    @while(!viewer.isDisplayed){}
    @{String imgUrl=String.Format("data:image/png;base64,{0}", Convert.ToBase64String(viewer.imageBytes));}
    <img  src="@imgUrl"/>        
</div>

I have tried using javascript too but it doesn´t works.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda